package com.guigu.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageInfo;
import com.guigu.erp.mapper.DesignProcedureMapper;
import com.guigu.erp.pojo.DesignProcedure;
import com.guigu.erp.service.DesignProcedureService;
import com.guigu.erp.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:DesignProcedureServiceImpl
 * Package:com.guigu.erp.service.impl
 * Description:
 *
 * @Date:2024/3/11 21:35
 * @Author:chenchong
 */
@Service
public class DesignProcedureServiceImpl extends ServiceImpl<DesignProcedureMapper, DesignProcedure>
        implements DesignProcedureService {
@Autowired
private DesignProcedureMapper designProcedureMapper;
    @Override
    public PageUtils<DesignProcedure> show() {
        List<DesignProcedure> list = this.list();
        PageInfo<DesignProcedure> p=new PageInfo<>(list);
        PageUtils<DesignProcedure> page=new PageUtils<DesignProcedure>();
        page.setRows(p.getList());
        page.setTotal(p.getTotal());
        return page;
    }
}
